import Vue from 'vue'
import App from './App'
import store from './store/index'
import DictData from '@/components/Dict/init'
import DictTag from '@/components/Dict/DictTag'
import * as wxUtil from '@/utils/wxUtil'
import { getOSSImg } from '@/utils/util'

Vue.config.productionTip = false
App.mpType = 'app'

import uView from '@/uni_modules/uview-ui'

// 引入全局mixin
import mixin from '@/utils/mixin'
Vue.mixin(mixin)

// 登录弹窗
import LoginPop from '@/components/LoginPop/index'
Vue.component('LoginPop', LoginPop)
// 隐私弹窗
import ProtocolPop from '@/components/ProtocolPop/index'
Vue.component('ProtocolPop', ProtocolPop)

// 全局配置
Vue.prototype.$Utils = wxUtil
// Message弹窗
Vue.prototype.$Message = wxUtil.Message
// 页面跳转
Vue.prototype.$navigator = wxUtil.navigator
// 获取OSS图片
Vue.prototype.$getOSSImg = getOSSImg

Vue.component('DictTag', DictTag)
DictData.install()

const app = new Vue({
    ...App,
		store
})
app.$mount()
